package codebush.service;

import java.util.List;

import codebush.domain.Article;
import codebush.domain.Comment;
import codebush.domain.Users;

/**
 *2008-4-2
 *@author Fution Bai
 * Copyright 2007 
 */

public interface Get {
	int getUserId(String email);
	boolean whetherRegistered(String email);
	Users getUser(int userId);
	Article getArticle(Long articleId);
	List<Article> getArticlesByUserId(int userId, int offSet, int rowCount);
	List<Article> getArticlesByUserId(int userId, int offset);
	List<Article> getArticlesByUserId(int userId);
	int getTotalNumOfArticlesByUserId(int userId);
	List<Comment> getCommentsByUserId(int userId);
	List<Comment> getLatestCommentsByUserId(int userId);
	List<Comment> getCommentsByAId(Long articleId);
	Object top(String type, String orderBy, int userId);
	Object getUserLogoPictureByUserId(int userId);
	int getArticleIdByLinkAlias(String linkAlias);
}


